﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.WorkFlow.Dtos.FlowEngine
{
    public class FlowEngineCrInput
    {
        /// <summary>
        /// 流程名称
        /// </summary>
        [Required(ErrorMessage = "流程名称不能为空")]
        public string fullName { get; set; }
        /// <summary>
        /// 流程编号
        /// </summary>
        [Required(ErrorMessage = "流程名称不能为空")]
        public string enCode { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Required(ErrorMessage = "排序码不能为空")]
        public long? sortCode { get; set; }
        /// <summary>
        /// 表单类型(数据字典-流程表单类型)
        /// </summary>
        [Required(ErrorMessage = "表单类型不能为空")]
        public int? formType { get; set; }
        /// <summary>
        /// 流程分类(数据字典-工作流-流程分类)
        /// </summary>
        [Required(ErrorMessage = "流程分类不能为空")]
        public string category { get; set; }
        /// <summary>
        /// 流程类型(数据字典-工作流-流程类型)
        /// </summary>
        [Required(ErrorMessage = "流程类型不能为空")]
        public int? type { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [Required(ErrorMessage = "图标不能为空")]
        public string icon { get; set; }
        /// <summary>
        /// 图标背景
        /// </summary>
        [Required(ErrorMessage = "图标背景不能为空")]
        public string iconBackground { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// 状态(0-关闭，1-开启)
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        public int? enabledMark { get; set; }
        /// <summary>
        /// 表单JSON包
        /// </summary>
        [Required(ErrorMessage = "表单JSON包不能为空")]
        public string formData { get; set; }
        /// <summary>
        /// 流程JOSN包
        /// </summary>
        [Required(ErrorMessage = "流程JOSN包不能为空")]
        public string flowTemplateJson { get; set; }
        public string tables { get; set; }
    }
}
